import store from '@/store'
export default {
  methods: {
    // 校验员工是否权限
    checkPermission(pointName) {
      // 查看userInfo中的point，如果point有这个权限，就显示
      return store.getters.roles && store.getters.roles.points.includes(pointName)
    }
  }
}
